﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master"
    AutoEventWireup="true" CodeFile="ListStudent.aspx.cs" Inherits="Modeling_Teacher_ListStudent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .toCenter
        {
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {
            text-align: center;
        }
        #main
            {
                min-width: 1200px;        
            }
            #center
        {
            margin-top: 15px;
        }
        #left
        {
            margin-top: 15px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="left">
        <table>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Teacher/TimeTable.aspx"
                        CssClass="LinkStyle1">Time Table</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td id="activeTD">
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Teacher/ScoresManagerment.aspx"
                        CssClass="activeLink">Scores Managerment</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Teacher/ChangePassword.aspx"
                        CssClass="LinkStyle1">Change Password</asp:HyperLink>
                </td>
            </tr>
        </table>
    </div>
    <div id="center">
        <asp:Label ID="Label1" runat="server" Text="Course's Information" 
            Font-Bold="True" Font-Size="18pt"></asp:Label>
            <br /><br />
        <asp:GridView ID="gvCourseInformation" runat="server" AutoGenerateEditButton="True" 
            AutoGenerateColumns="False" onrowediting="GridView1_RowEditing" 
            EnableModelValidation="True" CssClass="toCenter" 
            onrowcancelingedit="dvCourseInformation_RowCancelingEdit" 
            onrowupdating="dvCourseInformation_RowUpdating"  BackColor="LightGoldenrodYellow" 
                BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black"
                GridLines="Both">
            <Columns>
                <asp:BoundField DataField="Course ID" HeaderText="Course's ID" ReadOnly="True" />
                <asp:BoundField DataField="Course Name" HeaderText="Course's Name" ReadOnly="True" />
                <asp:BoundField DataField="Subject" HeaderText="Subject" ReadOnly="True" />
                <asp:BoundField DataField="Start" HeaderText="Start" ReadOnly="True" />
                <asp:CheckBoxField DataField="Mo" HeaderText="Mo" ReadOnly="True" />
                <asp:CheckBoxField DataField="Tu" HeaderText="Tu" ReadOnly="True" />
                <asp:CheckBoxField DataField="We" HeaderText="We" ReadOnly="True" />
                <asp:CheckBoxField DataField="Th" HeaderText="Th" ReadOnly="True" />
                <asp:CheckBoxField DataField="Fr" HeaderText="Fr" ReadOnly="True" />
                <asp:CheckBoxField DataField="Sa" HeaderText="Sa" ReadOnly="True" />
                <asp:CheckBoxField DataField="Su" HeaderText="Su" ReadOnly="True" />
                <asp:BoundField DataField="Time Start" HeaderText="Time Start" ReadOnly="True" />
                <asp:BoundField DataField="Time End" HeaderText="Time End" ReadOnly="True" />
                <asp:BoundField DataField="Location" HeaderText="Location" ReadOnly="True" />
                <asp:CheckBoxField DataField="End" HeaderText="End" />
            </Columns>
        </asp:GridView>
        <br /><br />
        <asp:Label ID="Label2" runat="server" Text="List of Student" 
            Font-Bold="True" Font-Size="18pt"></asp:Label>
        <br /><br />
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
        <asp:GridView ID="gvListStudent" runat="server" AutoGenerateColumns="False" 
            AutoGenerateEditButton="True" CssClass="toCenter" 
            onrowediting="gvListStudent_RowEditing" 
            onrowcancelingedit="gvListStudent_RowCancelingEdit" 
            onrowupdating="gvListStudent_RowUpdating"  BackColor="LightGoldenrodYellow" 
                BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black"
                GridLines="Both">
            <Columns>
                <asp:BoundField DataField="Student ID" HeaderText="Student's ID" ReadOnly="True" />
                <asp:BoundField DataField="Student Name" HeaderText="Student's Name" ReadOnly="True" />
                <asp:TemplateField HeaderText="Mark">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("[Mark]") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("[Mark]") %>'></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:CheckBoxField DataField="Pass" HeaderText="Pass" ReadOnly="True" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
